<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Returns an copy of a subset of the train data</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.fann-shuffle-train-data.html">fann_shuffle_train_data</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.fann-test-data.html">fann_test_data</a></div>
 <div class="up"><a href="ref.fann.html">Fann 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.fann-subset-train-data" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">fann_subset_train_data</h1>
  <p class="verinfo">(PECL fann &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">fann_subset_train_data</span> &mdash; <span class="dc-title">Returns an copy of a subset of the train data</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.fann-subset-train-data-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">resource</span> <span class="methodname"><strong>fann_subset_train_data</strong></span>
    ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$data</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$pos</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$length</code></span>
   )</div>

  <p class="para rdfs-comment">
   Returns an copy of a subset of the train data <span class="type"><a href="language.types.resource.html" class="type resource">resource</a></span>, starting at position
   <em>pos</em> and <em>length</em> elements forward.
  </p>
  <p class="para">
   The <em>fann_subset_train_data(train_data, 0, fann_length_train_data(train_data))</em> do the same as
   <span class="function"><a href="function.fann-duplicate-train-data.html" class="function">fann_duplicate_train_data()</a></span>
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.fann-subset-train-data-parameters">
  <h3 class="title">参数</h3>
  <dl>

   
    <dt>
<em><code class="parameter">data</code></em></dt>

    <dd>

     <p class="para">Neural network training data <span class="type"><a href="language.types.resource.html" class="type resource">resource</a></span>.</p>
    </dd>

   
   
    <dt>
<em><code class="parameter">pos</code></em></dt>

    <dd>

     <p class="para">
      Starting position.
     </p>
    </dd>

   
   
    <dt>
<em><code class="parameter">length</code></em></dt>

    <dd>

     <p class="para">
      The number of copied elements.
     </p>
    </dd>

   
  </dl>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.fann-subset-train-data-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para"> Returns a train data <span class="type"><a href="language.types.resource.html" class="type resource">resource</a></span> on success, or <strong><code>FALSE</code></strong> on error.</p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.fann-subset-train-data-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="function.fann-duplicate-train-data.html" class="function" rel="rdfs-seeAlso">fann_duplicate_train_data()</a> - Returns an exact copy of a fann train data</span></li>
   </ul>
  </p>
 </div>



</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.fann-shuffle-train-data.html">fann_shuffle_train_data</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.fann-test-data.html">fann_test_data</a></div>
 <div class="up"><a href="ref.fann.html">Fann 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
